import service from "@/utils/fetch";
const post = {
  //获取订单列表
  getOrderList(params) {
    return service({
      method: "get",
      params,
      url: "/api/sale/",
    });
  },
  // 获取订单详情
  getOrderDetail(id) {
    return service({
      method: "get",
      url: `/api/sale/${id}`,
    });
  },
  // 退款审核
  refundCheck(params) {
    return service({
      method: "post",
      url: "/api/sale/refundCheck",
      data: params,
    });
  },
  // 获取地址列表
  getTenantAddress() {
    return service({
      method: "get",
      url: "/api/tenantAddress/",
    });
  },
};

export default post;
